﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using VOD.Models;

namespace VOD.Helpers
{
    public static class VODConfig
    {
        public static string SiteName { get; set; }
        public static string ICP { get; set; }
        public static string MetaKeyword { get; set; }
        public static string Description { get; set; }
        public static string CountScript { get; set; }
    }

    public class GetConfig
    {
        public GetConfig()
        {
            VODEntities db=new VODEntities();
            var config=db.Sysconfigs.FirstOrDefault();
            VODConfig.SiteName = config.SiteName;
            VODConfig.ICP = config.ICP;
            VODConfig.MetaKeyword = config.MetaKeyword;
            VODConfig.Description = config.Description;
            VODConfig.CountScript = config.CountScript;
            db.Dispose();
        }
    }
}